#ifndef __MATRIX_KEYS_H__
#define __MATRIX_KEYS_H__

#include "Config.h"

// column
#define COL1 	P51
#define COL2 	P52
#define COL3 	P53
#define COL4 	P54

//#define ROW1 	0
//#define ROW2 	0
//#define ROW3 	0
//#define ROW4 	0

#define DOWN	0
#define UP		1

#define ROW_NUM 	4	
#define COL_NUM 	4	

void MK_init();

void MK_scan();

extern void MK_on_keydown(u8 row, u8 col);
extern void MK_on_keyup(u8 row, u8 col);

#endif